\documentclass[tikz,border=2mm]{standalone}
\usepackage{array,amsmath,mathptmx,xcolor,bbding,pifont,colortbl}
\usepackage[UTF8]{ctex}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% 只需要这个就可以
\usepackage[thicklines]{cancel}
% 可以设置线条颜色，默认是黑色
\usepackage{xcolor}
\usepackage{tikz-cd}
\usepackage{tikz,graphicx,subfig,caption} % Required for drawing custom shapes
\usetikzlibrary{fit,matrix,chains,arrows,shapes,positioning,arrows.meta,chains,shadows,shapes.callouts,decorations.text,shapes.symbols,shapes.misc, positioning,decorations.pathreplacing,calc}

% 额外添加
\usepackage{indentfirst}
\usepackage{diagbox} 
\usepackage{ulem}
\usepackage{cancel}

\begin{document} 
	\begin{tikzpicture}[>=latex,every node/.style={anchor=south west,,inner sep=0,fill=white}]
		\node(table)[anchor=north,fill=white] at (0,0){  
			\begin{tabular}{|p{8em}|p{8em}|p{2em}|p{5em}|p{5em}|}
				\hline 
				递归子程序栈 & 返回地址栈 & w & SEM[m] & QT[q]\\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}} & $R_0$ {\textcolor{blue}{$R_1$}} $R_4$ & \textcolor{red}{\bcancel{\textcolor{black}{$a$}}} & a & \\ \hline
				Z\ {\textcolor{blue}{E}}\ T & $R_0$ {\textcolor{blue}{$R_1$}}  & \textcolor{red}{\bcancel{\textcolor{black}{$*$}}} & a & \\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}} & $R_0$ {\textcolor{blue}{$R_1$}} $R_5$ & \textcolor{red}{\bcancel{\textcolor{black}{$($}}} & a & \\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}}\ E\ {\textcolor{blue}{T}}\ F & $R_0$ {\textcolor{blue}{$R_1$}} $R_5$ {\textcolor{blue}{$R_7$}} $R_1$ {\textcolor{blue}{$R_4$}} & \textcolor{red}{\bcancel{\textcolor{black}{$b$}}} & a\ b & \\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}}\ E\ {\textcolor{blue}{T}} & $R_0$ {\textcolor{blue}{$R_1$}} $R_5$ {\textcolor{blue}{$R_7$}} $R_1$ & \textcolor{red}{\bcancel{\textcolor{black}{$/$}}} & a\ b & \\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}}\ E\ {\textcolor{blue}{T}}\ F & $R_0$ {\textcolor{blue}{$R_1$}} $R_5$ {\textcolor{blue}{$R_7$}} $R_1$ {\textcolor{blue}{$R_6$}} & \textcolor{red}{\bcancel{\textcolor{black}{$c$}}} & a\ b \ c& \\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}}\ E\ {\textcolor{blue}{T}} & $R_0$ {\textcolor{blue}{$R_1$}} $R_5$ {\textcolor{blue}{$R_7$}} $R_1$ & \textcolor{red}{\bcancel{\textcolor{black}{$)$}}} & a\ \textcolor{red}{\bcancel{\textcolor{black}{$b$}}}\ \textcolor{red}{\bcancel{\textcolor{black}{$c$}}} & \textcolor{blue}{(1)(/b,c,t1)} \\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}}\ E & $R_0$ {\textcolor{blue}{$R_1$}} $R_5$ {\textcolor{blue}{$R_7$}} & ) & a\ \textcolor{blue}{t1} & \\ \hline
				Z\ {\textcolor{blue}{E}}\ T\ {\textcolor{blue}{F}} & $R_0$ {\textcolor{blue}{$R_1$}} $R_5$  & \textcolor{red}{\bcancel{\textcolor{black}{$)$}}} & a\ \textcolor{blue}{t1} & \\ \hline
				Z\ {\textcolor{blue}{E}}\ T & $R_0$ {\textcolor{blue}{$R_1$}} & \# & \textcolor{red}{\bcancel{\textcolor{black}{$a$}}}\ \textcolor{red}{\bcancel{\textcolor{blue}{$t1$}}} & \textcolor{blue}{(2)(*a,t1,t2)}\\ \hline
				Z\ {\textcolor{blue}{E}} & $R_0$  & \# & \textcolor{blue}{t2} & \\ \hline
				Z & & \# & \textcolor{blue}{t2} & \\ \hline
				& & & & \\ \hline
			\end{tabular}
		};
		\draw [red]([xshift=-3.7em,yshift=-1.8em]table.north) circle (0.6em);
		\draw [red]([xshift=-13.5em,yshift=-4.3em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-4.3em,yshift=-1.8em]table.north) -- ([xshift=-12.9em,yshift=-4.3em]table.north);
		
		\draw [red]([xshift=0.2em,yshift=-5.5em]table.north) circle (0.6em);
		\draw [red]([xshift=-11.8em,yshift=-6.8em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-0.4em,yshift=-5.5em]table.north) -- ([xshift=-11.2em,yshift=-6.8em]table.north);
		
		\draw [red]([xshift=0.2em,yshift=-8em]table.north) circle (0.6em);
		\draw [red]([xshift=-11.8em,yshift=-9.3em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-0.4em,yshift=-8em]table.north) -- ([xshift=-11.2em,yshift=-9.3em]table.north);
		
		\draw [red]([xshift=-1em,yshift=-9.2em]table.north) circle (0.6em);
		\draw [red]([xshift=-12.7em,yshift=-10.5em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-1.6em,yshift=-9.2em]table.north) -- ([xshift=-12.1em,yshift=-10.5em]table.north);
		
		\draw [red]([xshift=-2.2em,yshift=-10.5em]table.north) circle (0.6em);
		\draw [red]([xshift=-13.5em,yshift=-11.7em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-2.8em,yshift=-10.5em]table.north) -- ([xshift=-12.9em,yshift=-11.7em]table.north);
		
		\draw [red]([xshift=-3.6em,yshift=-11.8em]table.north) circle (0.6em);
		\draw [red]([xshift=-14.5em,yshift=-13em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-4.2em,yshift=-11.8em]table.north) -- ([xshift=-13.9em,yshift=-13em]table.north);
		
		\draw [red]([xshift=-5em,yshift=-13em]table.north) circle (0.6em);
		\draw [red]([xshift=-15.4em,yshift=-14.2em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-5.6em,yshift=-13em]table.north) -- ([xshift=-14.8em,yshift=-14.2em]table.north);
		
		\draw [red]([xshift=-6.8em,yshift=-14.2em]table.north) circle (0.6em);
		\draw [red]([xshift=-15.9em,yshift=-15.5em]table.north) circle (0.6em);
		\draw[->,red] ([xshift=-7.4em,yshift=-14.2em]table.north) -- ([xshift=-15.3em,yshift=-15.5em]table.north);
		
		\node(table)[anchor=north,inner sep=0.5em,fill=yellow!20] at ([xshift=-7.6em,yshift=-15.5em]table.north){\textcolor{red}{Ok!}};
		
	\end{tikzpicture}
\end{document}
